package com.elai.operate.service.impl;

import com.elai.operate.domain.OperatePlanGroupDO;
import com.elai.operate.mapper.OperatePlanGroupMapper;
import com.elai.operate.service.OperatePlanGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计划分组Service业务层处理
 *
 * @author cjm
 * @date 2021-12-02
 */
@Service
public class OperatePlanGroupServiceImpl implements OperatePlanGroupService {

    @Autowired
    private OperatePlanGroupMapper operatePlanGroupMapper;

    @Override
    public List<OperatePlanGroupDO> getPlanGroupByUserId(Long userId) {
        return operatePlanGroupMapper.getPlanGroupByUserId(userId);
    }

    @Override
    public int insertOperatePlanGroup(OperatePlanGroupDO operatePlanGroup) {
        return operatePlanGroupMapper.insertOperatePlanGroup(operatePlanGroup);
    }

    @Override
    public int updateOperatePlanGroup(OperatePlanGroupDO operatePlanGroupDO) {
        return operatePlanGroupMapper.updateOperatePlanGroup(operatePlanGroupDO);
    }

    @Override
    public int deleteOperatePlanGroup(Long id) {
        return operatePlanGroupMapper.deleteOperatePlanGroup(id);
    }

    @Override
    public int deleteOperatePlanGroupByIds(Long[] ids) {
        return operatePlanGroupMapper.deleteOperatePlanGroupByIds(ids);
    }
}
